<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitereview
 * @copyright  Copyright 2012-2013 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Bootstrap.php 6590 2013-04-01 00:00:00Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitereview_Bootstrap extends Engine_Application_Bootstrap_Abstract {

  public function __construct($application) {
    parent::__construct($application);
    include_once APPLICATION_PATH . '/application/modules/Sitereview/controllers/license/license.php';
  }
  
  protected function _initFrontController() {

    $this->initActionHelperPath();
    $this->initViewHelperPath();
    $front = Zend_Controller_Front::getInstance();
    $front->registerPlugin(new Sitereview_Plugin_Core);
    $headScript = new Zend_View_Helper_HeadScript();
//    if (Zend_Registry::isRegistered('StaticBaseUrl')) {
//      $headScript->appendFile(Zend_Registry::get('StaticBaseUrl')
//              . 'application/modules/Sitereview/externals/scripts/core.js');
//    } else {
//      $headScript->appendFile('application/modules/Sitereview/externals/scripts/core.js');
//    }
// 		$listingTypes = Engine_Api::_()->getDbTable('listingtypes', 'sitereview')->getAllListingTypes();
// 
// 		foreach($listingTypes as $listingType) {
// 
// 			if (!Zend_Registry::isRegistered('listingtypeArray'.$listingType->listingtype_id)) {
// 				Zend_Registry::set('listingtypeArray'.$listingType->listingtype_id, $listingType);
// 			}
// 		}
  }

}